package cn.top.system.service.impl;

import cn.top.system.entity.SysMenu;
import cn.top.system.entity.SysRole;
import cn.top.system.mapper.SysRoleMapper;
import cn.top.system.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 角色信息表 服务实现类
 * </p>
 *
 * @author tutu
 * @since 2024-08-10
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public List<String> getRoleByUserId(Long id) {
        return roleMapper.getRoleByUserId(id);
    }

}
